package com.woniu.commons.util;

import org.springframework.stereotype.Component;

@Component
public class RedisKey {

    public static String WASTE_TYPE_KEY() {  return "waste_type" ;}

    public static String ADMIN_REFRESH_TOKEN_KEY(String access){
        return "admin:refresh:access:" + access;
    };

    public static String USER_REFRESH_TOKEN_KEY(String access){
        return "user:refresh:access:" + access;
    };

    public static String ADMIN_ACCESS_TOKEN_KEY(Integer id) {return "admin:access:id" + id; }

    public static String ACCESS_TIME_OUT(String accessToken) {
        return "access:timeout:" + accessToken;
    }

    public static String TALK_FORM_USER_KEY(String userId){
        return "talk:form:userId:" + userId;
    }

    public static String TALK_FORM_ADMIN_KEY(String adminId) {
        return "talk:form:adminId:" + adminId;
    }

    public static String TALK_ADMIN_USER_KEY(String userId, String adminId) {
        return "talk:admin:userId:" + userId + ":adminId:" + adminId;
    }

    public static String TALK_USER_ADMIN_KEY(String userId, String adminId) {
        return "talk:user:userId:" + userId + ":adminId:" + adminId;
    }
    public static String WASTE_TYPE_COUNT_KEY() {
        return "waste_type_search_count";
    }
}

